<template>
	<view class="header">
		<view class="bg">
			<view class="box">
				<view class="box-hd">
					<view class="avator">
						<img src="../../static/img/11.png">
					</view>
					<view class="phone-number">{{homeinfo.name}}</view>
				</view>
				<view class="box-bd">
					<view class="item">
						<view class="icon"><img src="../../static/img/message.png"></view>
						<view class="text">我的通知</view>
					</view>
					<view class="item">
						<view class="icon"><img src="../../static/img/favorite.png"></view>
						<view class="text">我的收藏</view>
					</view>
					<view class="item">
						<view class="icon"><img src="../../static/img/service.png"></view>
						<view class="text">我的客服</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			homeinfo:Object
		},
		data(){
			return{
				rizeList:['管理员','游客','客户管理员','操作员']
			}
		},
		methods:{
			ToUserSpace(){
				uni.navigateTo({
					url: '../../pages/user-space/user-space',
				});
			}
		}
	}
</script>

<style lang="less" scoped>
	.header{
		background: #fff;
		height: 290upx;
		padding-bottom: 110upx;
		.bg{
			width: 100%;
			height:200upx;
			padding-top:100upx;
			background-color:#4191ea;
		}
	}
	.box{
		width: 650upx;
		height: 280upx;
		border-radius: 20upx;
		margin: 0 auto;
		background: #fff;
		box-shadow: 0 5upx 20upx 0upx rgba(0, 0, 150, .2); 
		.box-hd{
			display: flex;
			flex-wrap: wrap;
			flex-direction: row;
			justify-content: center;
			.avator{
				width: 160upx;
				height: 160upx;
				background: #fff;
				border: 5upx solid #fff;
				border-radius: 50%;
				margin-top: -80upx;
				overflow: hidden;
				img{
					width: 100%;
					height: 100%;
				}
			}
			.phone-number{
				width: 100%;
				text-align: center;
			}
		}
		.box-bd{
			display: flex;
			flex-wrap: nowrap;
			flex-direction: row;
			justify-content: center;
			.item{
				flex: 1 1 auto;
				display: flex;
				flex-wrap: wrap;
				flex-direction: row;
				justify-content: center;
				border-right: 1px solid #f1f1f1;
				margin: 15upx 0;
				&:last-child{
					border: none;
				}
				.icon{
					width: 60upx;
					height: 60upx;
					img{
						width: 100%;
						height: 100%;
					}
				}
				.text{
					width: 100%;
					text-align: center;
					margin-top: 10upx;
				}
			}
		}
	}
// .home-info{
// 	padding: 20upx 40upx;
// 		background-color: rgba(0,157,199,.4);
// }
// .home-info>image{
// 	flex-shrink: 0;
// 	width: 100upx;
// 	height: 100upx;
// 	border-radius: 100%;
// 	margin-right: 15upx;
// }
// .home-info>view:first-of-type>view:first-child{
// 	font-size: 32upx;
// 	color: #fff;
// }
// .home-info>view:first-of-type>view:last-child{
// 	/* color: #BBBBBB; */
// }
// .home-info>view:last-of-type{
// 	height: 100%;
// }

</style>
